package com.nursinghome.admin.mapper;

import com.nursinghome.bean.Holidays;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface HolidaysMapper {
    //查询所有通过的请假
    //List<Holidays> selectByState();
    //根据请假人查询请假记录
    List<Holidays> selectByMname(@Param("mname") String mname);
    //请假审批
    Integer updateState(@Param("state") Integer state, @Param("hid") Integer hid);
    //查询所有的请假
    List<Holidays> selectAll(@Param("mname") String mname);
    //根据hid查看是否有为审批的请假
    Holidays selectByHid(Integer hid);
    //根据hid查询是否有待审核的请假
    Holidays selectByHidByPaass(Integer hid);
}
